package com.glut.mapper;

import com.github.pagehelper.Page;
import com.glut.vo.SstsUsers;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author:沈林玉
 * @date:2020/2/3 10:35
 * @Description:
 */
@Repository
public interface SstsUsersMapper {

    /**
     * 1.用户登录
     * @param users
     * @return
     */
    public SstsUsers sstsUsersLogin(SstsUsers users);

    /**
     * 2.查看学生账号
     * @param users
     * @return
     */
    public Page<SstsUsers> selectStudent(@Param("users")SstsUsers users,
                                         @Param("pageNum") int pageNum,
                                         @Param("pageSize") int pageSize);

    /**
     * 3.通过id查看学生账号
     * @param users
     * @return
     */
    public SstsUsers selectStudentById(SstsUsers users);

    /**
     * 4.教师新增学生账号
     * @param users
     * @return
     */
    public int insertStudent(SstsUsers users);


    /**
     * 5.更新学生账号
     * @param users
     * @return
     */
    public int updateStudent(SstsUsers users);

    /**
     * 6.删除学生账号
     * @param users
     * @return
     */
    public int deleteStudent(SstsUsers users);

}
